﻿using CoreShop.Model.UI;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{

    /// <summary>
    /// 通用实体
    /// </summary>
    public class DeskIsUseModel
    {
        /// <summary>
        /// 序列
        /// </summary>
        public Int64 id { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public String number { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public String name { get; set; }

        public int manQty { get; set; }


        /// <summary>
        /// 桌台状态
        /// </summary>
        public System.Int32 deskStatus {  get; set; }

        public List<OrderModel> orders { get; set; }
    }

    /// <summary>
    /// 请求实体
    /// </summary>
    public class OrderModel
    {
        /// <summary>
        /// 桌台Id
        /// </summary>
        public long deskId { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public long orderId { get; set; }


        /// <summary>
        /// 商品数
        /// </summary>
        public Int32 foodCount { get; set; }

        /// <summary>
        /// 就餐人数
        /// </summary>
        public Int32 person { get; set; }

        /// <summary>
        /// 小计
        /// </summary>
        public Decimal amount { get; set; }

        /// <summary>
        /// 取消单号
        /// </summary>
        public string number { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string sysUserName { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime orderDate { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string orderNo { get; set; }

 
        public string orderIdStr { get; set; }
    }
}
